JML's Rich, Inherited Specifications for Behavioral Subtypes
نویسنده
چکیده
The Java Modeling Language (JML) is used to specify detailed designs for Java classes and interfaces. It has a particularly rich set of features for specifying methods. This paper describes those features, with particular emphasis on the features related to specification inheritance. It shows how specification inheritance in JML forces behavioral subtyping, through a discussion of semantics and examples. It also describes a notion of modular reasoning based on static type information, supertype abstraction, which is made valid in JML by methodological restrictions on invariants, history constraints, and initially clauses and by behavioral subtyping.
منابع مشابه
Discrimination of ADHD Subtypes Using Decision Tree on Behavioral, Neuropsychological, and Neural Markers
Introduction: Attention-Deficit/Hyperactivity Disorder (ADHD) is a well-known neurodevelopmental disorder. Diagnosis and treatment of ADHD can often lead to a developmental trajectory toward positive results. The present study aimed at implementing the decision tree method to recognize children with and without ADHD, as well as ADHD subtypes. Methods: In the present study, the subjects includ...
متن کاملPreventing Cross-Type Aliasing for More Practical Reasoning
To reason about the correctness of a method when cross-type aliases are possible, one must not only consider all possible patterns of aliasing among the method’s arguments, but all possible ways in which these types’ abstract (specification-only) fields may be aliased. Because of the large number of such aliasing possibilities, and because of the complications they cause for reasoning, cross-ty...
متن کاملCHASE: A Static Checker for JML's Assignable Clause
This paper presents a syntactic method to check so-called assignable clauses of annotated Java programs. Assignable clauses describe which variables may be assigned by a method. Their correctness is crucial for reasoning about class specifications. The method that we propose is incomplete, as it only makes a syntactic check and it does not take aliasing or expression evaluation into account, bu...
متن کاملIntroducing Specification-Based Data Structure Repair Using Alloy
While several different techniques utilize specifications to check correctness of programs before they are deployed, the use of specifications in deployed software is more limited, largely taking the form of runtime checking where assertions form a basis for detecting erroneous program states and terminating erroneous executions in failures. Recent approaches [1] proposed constraint-based repai...
متن کاملAssessment of Aphasia in Iranian Patients Suffering From Frontotemporal Dementia
Objective Frontotemporal dementia (FTD) is an uncommon type of dementia. The hallmark feature of FTD is the presentation with aphasia, or behavioral changes which are varies in different subtypes of the disease. We propose a quantitative aphasia test as an additive diagnostic tool for differentiation of FTD subtypes. Method: The study was performed on 20 patients, who were referred to dementia...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006